home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5814 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  711 b 

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: const char??
  5. Date: 22 Feb 1996 03:07:22 +1300
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4gf8uq$i60@airdmhor.gen.nz>
  8. References: <31287436.1235873@news.inforamp.net>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Danny Heuman:
  13. > What is a const char?  I am getting an error at compile time stating
  14. > that it can not convert an int to a const char.  I'm using strcpy.
  15.  
  16.   const char * is a pointer to a string that can't/won't be modified.. it
  17. sounds as if you're passing ant in to strcpy, strcpy doesn't accept int's
  18. anywhere.
  19.